package com.castday2.castday2.test;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.castday2.castday2.bean.User;
import com.castday2.castday2.mapper.UserMapper;
import com.castday2.castday2.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Author : 徐闯 mpcast
 * @Date : 2021-05-24 21:05:32
 * @Description :
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
public class E_ServiceDemo {
    @Autowired
    private UserService userService;
    @Test
    public  void  test(){
        User user = userService.getOne(new QueryWrapper<User>()
            .eq("id",7)
        );
        System.out.println(user);
    }
}
